xl: Drop -l option to xl cpupool-list
authorIan Campbell <ian.campbell@citrix.com>
Tue, 7 Feb 2012 16:50:17 +0000 (16:50 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Feb 2012 16:50:17 +0000 (16:50 +0000)
The implementation (which was a nop) was removed back in 22838:aab67c1c6b87 but
this now causes "set but not used" warnings from some compilers. Might as well
just nuke the option entirely.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c

index 0b811b5b45744fb8eba7b580c8977e6b19b97b27..70f9848f364521235e132ea99f27dfa11b5fdaca 100644 (file)
@@ -5585,11 +5585,9 @@ int main_cpupoollist(int argc, char **argv)
     int option_index = 0;
     static struct option long_options[] = {
         {"help", 0, 0, 'h'},
-        {"long", 0, 0, 'l'},
         {"cpus", 0, 0, 'c'},
         {0, 0, 0, 0}
     };
-    int opt_long = 0;
     int opt_cpus = 0;
     const char *pool = NULL;
     libxl_cpupoolinfo *poolinfo;
@@ -5599,7 +5597,7 @@ int main_cpupoollist(int argc, char **argv)
     int ret = 0;
 
     while (1) {
-        opt = getopt_long(argc, argv, "hlc", long_options, &option_index);
+        opt = getopt_long(argc, argv, "hc", long_options, &option_index);
         if (opt == -1)
             break;
 
@@ -5607,9 +5605,6 @@ int main_cpupoollist(int argc, char **argv)
         case 'h':
             help("cpupool-list");
             return 0;
-        case 'l':
-            opt_long = 1;
-            break;
         case 'c':
             opt_cpus = 1;
             break;